<template>
  <div id="app">
    <div class="header">
      <a href="#">
        <img src="./img/logo.jpg" class="img" />
      </a>
      <div>
        <span class="span">会员中心</span>
        <span class="right">
          <img src="./img/4444.png" alt />
          <i>发布信息</i>
        </span>
      </div>
    </div>
    <div class="con">
      <div class="first">
        <input type="text" placeholder="请在这里输入关键词" />
      </div>
      <div style="margin-right:10px">
        <button>
          <i class="el-icon-search"></i>
        </button>
      </div>
    </div>
    <div class="wei">
      <ul>
        <router-link to="/">
          <li>
            <img :src="$route.path=='/'?require('./img/di.png'):require('./img/di2.png')" />
          </li>
        </router-link>
        <router-link to="/history">
          <li>
            <img :src="$route.path=='/history'?require('./img/222.png'):require('./img/223.png')" />
          </li>
        </router-link>
        <router-link to="/login">
          <li>
            <img :src="$route.path=='/login'?require('./img/333.png'):require('./img/334.png')" />
          </li>
        </router-link>
        <router-link to="/publish">
          <li>
            <img :src="$route.path=='/publish'?require('./img/111.png'):require('./img/112.png')" />
          </li>
        </router-link>
      </ul>
    </div>
    <router-view />
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {};
  },
  methods: {}
};
</script>

<style>
.wei {
  width: 100%;
  height: 38px;
  background: #fff;
  border-top: 1px solid #ddd;
  position: fixed;
  bottom: 0px;
  margin: 0;
  padding: 0;
  z-index: 99;
}
.wei ul {
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.wei li img {
  width: 25px;
  height: 25px;
}
.right img {
  width: 23px;
  height: 23px;
}
.img {
  width: 111px;
  height: 32px;
  margin-top: 4px;
}
.span {
  font-size: 14px;
  color: #3f4358;
  margin: 12px 7px 0 0;
}
i {
  font-style: normal;
  font-size: 12px;
}
.header a {
  border-radius: 0;
  display: inline-block;
  height: 26px;
  margin: 8px 12px 11px 10px;
  width: 111px;
}
.con .first {
  color: #333;
  font-size: 12px;
  margin: 0 1px 9px 10px;
  flex: 1;
}
.con {
  background: url("./img/top.png") no-repeat #ff6c00;
  background-size: 100% 100%;
  display: flex;
  padding: 10px 0 1px 0;
}
.con input {
  border: none;
  border-radius: 0;
  color: #333;
  display: block;
  font-size: 12px;
  height: 35px;
  margin: 0;
  padding: 1px 0;
  text-indent: 6px;
  width: 100%;
  box-sizing: border-box;
}
.con button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  color: #333;
  display: block;
  font-size: 12px;
  height: 35px;
  padding: 2px 0;
  width: 55px;
  box-sizing: border-box;
  background: #fff;
  outline: none;
}
.con button i {
  font-size: 16px;
}
.right {
  background: #ff6c00;
  width: 63px;
  height: 45px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.header div {
  display: flex;
  align-items: center;
}
a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
body {
  margin: 0;
  padding: 0;
  background: #f2f2f2;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  padding: 0;
  margin: 0;
}
p {
  margin: 0;
  padding: 0;
}
b {
  font-weight: normal;
  color: #fff;
}
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
</style>
